<?php
// short and sweet
session_destroy();
header('Location: login.php');